package com.sykj.manage.dao;

import java.util.List;

import com.sykj.manage.model.DictionaryIndex;
import com.sykj.manage.model.SysDictionary;



public interface SysDictionaryDao {
	/**
	 * 微信菜单类型查询
	 * @return
	 */
	public List<SysDictionary> findMtypes();
	
	/**
	 * 字典标识
	 * @return
	 */
	public List<DictionaryIndex> findDictionaryIndexs(DictionaryIndex dictionaryIndex);
	
	/**
	 * 字典查询
	 * @param dic_index_id
	 * @return
	 */
	public List<SysDictionary> findDictionarysById(SysDictionary sysDictionary);
	
	/**
	 * 根据id查询字典标识
	 * @param dic_index_id
	 * @return
	 */
	public DictionaryIndex findDictionaryIndexById(String dic_index_id);
	
	/**
	 * 添加字典标识
	 * @param dictionaryIndex
	 * @return
	 */
	public int addDictionaryIndex(DictionaryIndex dictionaryIndex);
	
	/**
	 * 修改字典标识
	 * @param dictionaryIndex
	 * @return
	 */
	public int updDictionaryIndex(DictionaryIndex dictionaryIndex);
	
	/**
	 * 删除字典标识
	 * @param dic_index_ids
	 * @return
	 */
	public int delDictionaryIndex(String[] dic_index_ids);
	
	//==================================================================
	
	/**
	 * 根据id查询字典
	 * @param dic_id
	 * @return
	 */
	public SysDictionary findDictionaryById(String dic_id);
	
	/**
	 * 添加字典
	 * @param sysDictionary
	 * @return
	 */
	public int addDictionary(SysDictionary sysDictionary);
	
	/**
	 * 修改字典
	 * @param sysDictionary
	 * @return
	 */
	public int updDictionary(SysDictionary sysDictionary);
	
	/**
	 * 删除字典
	 * @param dic_ids
	 * @return
	 */
	public int delDictionary(String[] dic_ids);
}
